from django.db import models


class Persona(models.Model):

    nombre = models.CharField(max_length=10, null=True, blank=True)
    apPaterno = models.CharField(max_length=60)
    apMaterno = models.CharField(max_length=60)
    tipoDoc = models.CharField(max_length=60)
    numDoc = models.CharField(max_length=60)
    direccion = models.CharField(max_length=60)
    telefono = models.CharField(max_length=60)
    email = models.CharField(max_length=60)

    #created_at = models.DateTimeField(auto_now_add=True)
    #updated_at = models.DateTimeField(auto_now=True)

    class Meta:
        verbose_name = "Persona"
        verbose_name_plural = "Personas"

    def __str__(self):
        return self.nombre
